package parts4.lesson43;

public class Demo {
    public static void main(String[] args) {
        StringBuffer buf = new StringBuffer();
        buf.append("hello").append("world");
        fun(buf);
        buf.delete(1, 3);
        System.out.println(buf);
        buf.insert(2, "陈淘宝，");
        System.out.println(buf);
        buf.reverse();
        System.out.println(buf);
    }

    public static void fun(StringBuffer temp) {
        temp.append("tetest").append("2018");
    }
}
